Objects Reference

class light_vertex

Definition

class light_vertex
{
    vector pos[MAX_HWLIGHTS];
    vector color[MAX_HWLIGHTS];
    float radius[MAX_HWLIGHTS];
public:
    int nlights;
    light_vertex() { nlights=0; };
    void add_light(vector& p,vector& c,float r);
    void init_draw(bsp_object *obj);
    void end_draw();
};

Data Members

Member Type Description
nlights int number of active lights
pos vector[] position of active lights
color vector[] color of active lights
radius float[] radius of active lights

Methods

add_light, init_draw, end_draw

Remarks

This class holds information on dynamic hardware lights. When a dynamic object receives a FLYOBJM_ILLUM message it adds the light parameters to this class with the add_light method. When rendering it calls the init_draw method before drawing the mesh to get the hardware lights in place. After finishing the render it calls end_draw to reset the hardware lights.

See Also

vector